<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/ui/header.jsp" %>
<link rel="stylesheet" href="${LUI_ContextPath}/ui/css/edit.css"/>
<script>
    function onSubmit() {
        var btn = $('button[type=submit]:first');
        if (btn && btn.length === 0) {
            btn = document.createElement("button");
            btn.setAttribute("type", "submit");
            btn.setAttribute("class", "layui-btn");
            btn.setAttribute("lay-submit", "");
            btn.setAttribute("lay-filter", "form");
            $('form').append(btn);
            btn.style.display = "none";
        }
        btn.click();
    }
</script>
<script>
    layui.use(['element', 'layer', 'laydate', 'form'], function () {
        var laydate = layui.laydate;
        var form = layui.form;
        var $ = layui.$;

        form.on('submit(form)', function (data) {
            return form.verify();
        });
    });
</script>
<script>
    if (typeof layui.xmSelect === 'undefined') {
        layui.config({
            base: '${LUI_ContextPath}/ui/layui/layui_exts/xm-select/'
        }).extend({
            xmSelect: 'xm-select'
        });
    }
</script>